package com.meitianhui.convenitenbuy.module.order.model.bean;

import com.meitianhui.convenitenbuy.Constants;

import java.util.HashMap;

/**
 * 我的订单伙拼团 详情
 */
public class FightGroupOrderDetail {

    private HashMap<String, String> doc_url;


    public HashMap<String, String> getDoc_url() {
        return doc_url;
    }

    public void setDoc_url(HashMap<String, String> doc_url) {
        this.doc_url = doc_url;
    }

    private Bean detail;

    public Bean getDetail() {
        return detail;
    }

    public void setDetail(Bean detail) {
        this.detail = detail;
    }

    public static class Bean {


        /**
         * activity_id : 3de3c12f83814fd1a72d5a3dc5c28f46
         * activity_sale_price : 55.00
         * address : 上海上海市崇明县说是
         * contact_person : 我都
         * contact_tel : 13696369853
         * deposit_fee : 55.00
         * desc1 : 火拼团！1亭子
         * goods_json_data : {"path_id":"4aee8d3f536f48a183742472df1fea1d","title":""}
         * item_num : 1
         * order_date : 2017-03-04 17:58:41
         * order_id : 27609b23c08e40fe863784b84c7547b4
         * order_no : 83796551151806464011
         * payment_way_key : ZFFS_05
         * received_mode : delivery
         * status : cancelled
         * total_fee : 55.00
         */

        private String activity_id;
        private String activity_sale_price;
        private String address;
        private String contact_person;
        private String contact_tel;
        private String deposit_fee;
        private String desc1;
        private String goods_json_data;
        private String item_num;
        private String order_date;
        private String order_id;
        private String order_no;
        private String payment_way_key;
        private String received_mode;
        private String status;
        private String total_fee;
        private String stores_name;
        private String member_mobile;

        public String getActivity_ladder_price() {
            return activity_ladder_price;
        }

        public void setActivity_ladder_price(String activity_ladder_price) {
            this.activity_ladder_price = activity_ladder_price;
        }

        private String activity_ladder_price;

        public String getMember_mobile() {
            return member_mobile;
        }

        public void setMember_mobile(String member_mobile) {
            this.member_mobile = member_mobile;
        }

        public String getStores_name() {
            return stores_name;
        }

        public void setStores_name(String stores_name) {
            this.stores_name = stores_name;
        }

        public String getActivity_id() {
            return activity_id;
        }

        public void setActivity_id(String activity_id) {
            this.activity_id = activity_id;
        }

        public String getActivity_sale_price() {
            return activity_sale_price;
        }

        public void setActivity_sale_price(String activity_sale_price) {
            this.activity_sale_price = activity_sale_price;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getContact_person() {
            return contact_person;
        }

        public void setContact_person(String contact_person) {
            this.contact_person = contact_person;
        }

        public String getContact_tel() {
            return contact_tel;
        }

        public void setContact_tel(String contact_tel) {
            this.contact_tel = contact_tel;
        }

        public String getDeposit_fee() {
            return deposit_fee;
        }

        public void setDeposit_fee(String deposit_fee) {
            this.deposit_fee = deposit_fee;
        }

        public String getDesc1() {
            return desc1;
        }

        public void setDesc1(String desc1) {
            this.desc1 = desc1;
        }

        public String getGoods_json_data() {
            return goods_json_data;
        }

        public void setGoods_json_data(String goods_json_data) {
            this.goods_json_data = goods_json_data;
        }

        public String getItem_num() {
            return item_num;
        }

        public void setItem_num(String item_num) {
            this.item_num = item_num;
        }

        public String getOrder_date() {
            return order_date;
        }

        public void setOrder_date(String order_date) {
            this.order_date = order_date;
        }

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getOrder_no() {
            return order_no;
        }

        public void setOrder_no(String order_no) {
            this.order_no = order_no;
        }

        public String getPayment_way_key() {
            return payment_way_key;
        }

        public void setPayment_way_key(String payment_way_key) {
            this.payment_way_key = payment_way_key;
        }

        public String getReceived_mode() {
            return received_mode;
        }

        public void setReceived_mode(String received_mode) {
            this.received_mode = received_mode;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getTotal_fee() {
            return total_fee;
        }

        public void setTotal_fee(String total_fee) {
            this.total_fee = total_fee;
        }


        public  String getPayWay(){
            if(getPayment_way_key().equals(Constants.ALIPAY_APY)){
                return "支付宝支付";
            }else if(getPayment_way_key().equals(Constants.WECHAT_APY)){
                return "微信支付";
            }else if(getPayment_way_key().equals(Constants.PAYMENT_WAY_05)){
                return "零钱";
            }else if(getPayment_way_key().equals(Constants.PAYMENT_WAY_06)){
                return "礼券兑换";
            }else if(getPayment_way_key().equals(Constants.MIANDANQUAN_APY)){
                return "免单券";
            }
            return "其他";
        }
        //伙拼团订单状态
        public  String getOrderStatus(){
            if("paid".equals(getStatus())){
                return "已支付";
            }else if("received".equals(getStatus())){
                return "已收货";
            }else if("cancelled".equals(getStatus())){
                return "已取消";
            }else if("refunded".equals(getStatus())){
                return "已返款";
            }else if("delivered".equals(getStatus())){
                return "已发货";
            }
            return "";
        }
    }
}
